﻿using System;
using MiddlewareCore.Application;
using MiddlewareCore;

namespace MiddlewareDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            IApplicationBuilder app = new ApplicationBuilder();
            app.UseStartUp<Startup>().Work(new MiddlewareContext<string> { Data="123456"});
            Console.WriteLine("这不是中间件执行……");

            Console.ReadKey();

            app.Dispose();
        }
    }
}
